package com.cloud.consul.comsumer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.cloud.consul.comsumer.service.FeignHelloService;

@RestController
public class FeignHelloController {
	@Autowired
	private FeignHelloService feignHelloService;
	/**
	 * 
	 * @return
	 */
	@RequestMapping("/feign/call")
	public String call() {
		return feignHelloService.hello();
	}
	/**
	 * 
	 * @return
	 */
	@RequestMapping("/feign/test")
	public String test() {
		return feignHelloService.test();
	}
}
